package Book;

public class Book {
    private String name;
    private String author;
    private String price;
    private boolean type;//默认为flase

    public Book(String name, String author, String price, boolean type) {
        this.name = name;
        this.author = author;
        this.price = price;
        this.type = type;
    }




    () {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public boolean isType() {
        return type;
    }

    public void setType(boolean type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", price='" + price + '\'' +
                ", type=" + type +
                '}';
    }
}
